<?php
namespace Mobile\Controller;
use Think\Controller;
class BaseController extends Controller {
	function _initialize(){
		$webInfo	= M('Config') -> find();
		$category	= M('Category') -> where(array(array('is_show' => '1'),array('parent_id' => '0'))) -> select();
		$nav_current	= strtoupper($Think.CONTROLLER_NAME);
		$links	= M('Links') -> select();
		$this -> assign('webInfo',$webInfo);
		$this -> assign('category',$category);
		$this -> assign('nav_current',$nav_current);
		$this -> assign('links',$links);
		$this -> assign('categoryInfo',$categoryInfo);
	}
}
